/*
 * gx_os_utils.h
 *
 *  Created on: Apr 8, 2012
 *      Author: zhanggx
 */

#ifndef GX_OS_UTILS_H_
#define GX_OS_UTILS_H_


int safe_write_n(int fd, char* buf, size_t size);
int safe_read_n(int fd, char* buf, size_t size);
void* gx_malloc(size_t size);
void gx_free(void* ptr);
#endif /* GX_OS_UTILS_H_ */
